﻿using Gx.Common;
using Gx.Dal;
using Gx.Dal.Manage;
using Gx.Model.Entity;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace Gx.Bll.Manage
{
    public class LKZeroWarehouseContractDetailBll
    {
        protected LKZeroWarehouseCostDetailDal zeroDetailDal = new LKZeroWarehouseCostDetailDal();
        protected LKZeroWarehouseContractDal zeroContractDal = new LKZeroWarehouseContractDal();

        public void ZeroWarehouseContractDetailSchedule()
        {
            var contractList = zeroDetailDal.GetZeroEntryByBalance();
            foreach (var item in contractList)
            {
                zeroDetailDal.AddZeroCostDetail(item.ContractNo, item.BillNo, DateTime.Now, item.EndTime, item.Days, item.UnitPrice);
            }

        }
    }
}
